.form-edit-container {
  position: relative;
  width: 100%;
  overflow-y: hidden;
  background-color: var(--el-bg-color-page);
  overflow-x: hidden !important;
  height: calc(100vh - 50px);
}

// 组件列表
.components-list {
  padding: 8px;
  box-sizing: border-box;
  user-select: none;
  height: 100%;
  color: #333333;


  .components-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-left: 7px;
  }

  .components-draggable {
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
  }

  .components-item {
    display: inline-block;
    width: 48%;
    height: 40px;
    margin: 1%;
    cursor: move;
    font-size: 14px;
    color: #333333;

    .components-body {
      padding: 8px 10px;
      font-size: 12px;
      border: 1px solid transparent;
      border-radius: 6px;
      background: var(--el-bg-color-page);
      vertical-align: middle;
      margin-bottom: 8px;
      white-space: nowrap;
      display: flex;

      svg {
        font-size: 18px;
        font-weight: 700;
        margin-right: 8px;
      }

      &:hover {
        color: var(--el-color-primary);
        background-color: var(--el-color-primary-light-9);

        svg {
          color: var(--el-color-primary) !important;
        }
      }
    }
  }
}

// 左侧面板
.left-board {
  width: 320px;
  position: absolute;
  top: 0;
  border-radius: 0;
  bottom: 20px;
  height: 100%;
  display: flex;

  background-color: rgba(255, 255, 255, 100);
  border: 1px solid rgba(255, 255, 255, 100);


  .left-tabs {
    height: 100%;
    width: 100%;

    .el-tab-pane {
      height: 100%;
    }

    .tabs-label {
      display: flex;
      flex-direction: column;
      align-content: center;
      justify-content: center;
      align-items: center;

      span {
        margin-top: 5px;
        font-size: 12px;
      }

      .el-icon,
      i {
        font-size: 20px;
      }
    }

    .el-tabs__item:focus-visible {
      box-shadow: none;
    }

    .el-tabs__item {
      padding: 0 10px !important;
      justify-content: center;
      text-align: center;
      margin-bottom: 25px;
    }

    .el-tabs__active-bar {
      display: none;
    }

    .el-tabs__header {
      border-right: var(--el-border);
      padding-top: 10px;
      margin-right: 0 !important;
    }
  }
}


.left-scrollbar {
  height: 97%;
  overflow: hidden;
  margin: 0;
  border-radius: 7px;
}

.center-scrollbar {
  height: 97%;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.center-board {
  height: 100%;
  width: auto;
  margin: 0 346px 50px 346px;
  box-sizing: border-box;
}

.empty-info {
  position: absolute;
  top: 36%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--el-font-size-base);
  color: var(--el-text-color);
  font-weight: 400;
  height: 180px;
  width: 50%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 5px;
  display: flex;
  align-content: center;
  align-items: center;
  flex-direction: column;
  justify-items: center;
  justify-content: center;
  letter-spacing: 0.1em;

  .el-icon {
    color: var(--el-color-primary)
  }

  .pointer {
    transform: rotate(250deg);
  }
}


.center-board-row {
  box-sizing: border-box;
  background-color: var(--el-bg-color-overlay);
  border-radius: 8px;
  max-width: 720px;
  margin: 40px auto 50px auto;
}

// 笔记本屏幕（包括MacBook M1等高分屏）
@media screen and (max-width: 1440px) {
  .center-board-row {
    max-width: 620px;
    margin: 70px auto 40px auto;
  }
}

// 2K屏幕（宽度在1700px到2560px之间）
@media screen and (min-width: 1700px) and (max-width: 2560px) {
  .center-board-row {
    max-width: 820px;
    margin: 20px auto 40px auto;
  }
}

// 4K屏幕（宽度大于2560px）
@media screen and (min-width: 2560px) {
  .center-board-row {
    max-width: 1220px;
    margin: 20px auto 40px auto;
  }
}

.drawing-board {
  height: 100%;
  min-height: 85vh;

  .components-body {
    padding: 0;
    margin: 0;
    font-size: 0;
  }

  .sortable-ghost {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 60px;

    &::before {
      content: " ";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 3px;
      background: var(--el-color-primary);
      z-index: 2;
    }
  }

  .el-form-item {
    margin-bottom: 15px;
  }
}

// 自增表单
.drawing-item .batch-box {
  & > .batch-label {
    font-size: 16px;
    font-weight: 500;
    padding: 2px 10px;
  }


  .draggable-box {
    min-height: 60px;
    width: 100%;
    background: transparent;

    .active-from-item {
      border: 1px dashed var(--el-border-color) !important;

      & .drawing-item-operation-wrap {
        visibility: visible;
      }
    }

    .drawing-item-operation-wrap {
      width: 50px;
      visibility: hidden;
    }

    .list-main {
      min-height: 60px;
      position: relative;
      border: 1px var(--el-border-color) dashed;
      overflow-x: auto;
      overflow-y: auto;
      white-space: nowrap;
      padding: 10px;

      .moving {
        width: 100%;
        min-height: 94px;
        display: inline-block;
        box-sizing: border-box;
        overflow: hidden;
        padding: 0 !important;
        position: relative;
      }

      .moving::before {
        content: "";
        height: 5px;
        width: 100%;
        background: var(--el-color-primary);
        position: absolute;
        top: 0;
        right: 0;
      }

      .drag-move:hover {
        & > .drawing-item-copy,
        & > .drawing-item-plus,
        & > .drawing-item-delete {
          display: initial;
        }
      }

      & > div {
        display: block;
        vertical-align: top;
        position: relative;
        margin: 0 2px;
        border: 1px dashed transparent;
      }


      .drag-move-box {
        position: relative;
        box-sizing: border-box;
        padding: 8px;
        overflow: hidden;
        min-height: 36px;
      }

      .drawing-item-operation-wrap {
        position: absolute;
        display: flex;
        flex-direction: row;
        right: 32px;
        top: 5px;
        box-shadow: none;
        gap: 5px;

        .el-icon {
          font-size: 16px;
          cursor: pointer;
        }

      }


      .el-form-item {
        padding-top: 20px;
      }
    }
  }
}

// END  自增表单结束


.selected_border {
  border: 1px dashed var(--el-border-color) !important;
}

.drawing-item {
  background-color: var(--el-bg-color-overlay);
  margin-bottom: 8px;
  border: 1px dashed transparent;
  position: relative;

  .sort-icon-wrap {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    visibility: hidden;
  }


  .el-form-item {
    display: block;
    user-select: none;
    padding: 0 10px 10px 20px;
  }

  .el-form-item__label {
    display: block;
    height: auto;
    line-height: 22px;
    margin-bottom: 8px;
    text-align: left;
  }


  &:hover {
    .sort-icon-wrap {
      visibility: visible;
    }
  }


  & .mover {
    right: 90px !important;
    color: #484848;
    cursor: move;
  }

}

.active-from-item {
  border: 1px dashed var(--el-border-color);
  background-color: #FAFAFA;
  transition: all 0.1s;
}

.form-desc-wrap {
  padding: 20px 0;
  background-color: var(--el-bg-color-overlay);
  border-radius: 6px;
  min-height: 120px;
  position: relative;


  [contenteditable]:focus {
    outline: none;
    background-color: #FAFAFA;
  }

  .center-name-box {
    text-align: center;
    margin: 0 10px 15px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 24px;
    font-weight: bold;

    &:hover {
      border: 1px dashed var(--el-border-color);
    }
  }

  .center-desc-box {
    text-align: center;
    margin: 20px 10px 15px;
    line-height: 25px;
    border-radius: 4px;
    border: 1px solid transparent;

    &:hover {
      border: 1px dashed var(--el-border-color);
    }
  }
}

.design-form {
  margin-top: 20px;

  .el-row {
    align-content: flex-start;
  }
}

// 考试
.evaluation-total-score {
  position: absolute;
  right: 22px;
  top: 2px;
  border-radius: 4px;
  min-width: 65px;
  min-height: 65px;
  background-color: var(--el-color-primary);

  .total-score-title {
    margin-top: 2px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
  }

  .total-score {
    text-align: center;
    font-weight: 700;
    font-size: 30px;
    color: #fff;
  }
}


// 强制隐藏掉表单校验红框
.design-form .el-form-item.is-error .el-input__wrapper {
  box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset !important;
}


.container {
  margin-left: 5px;

  .question-bank-input {
    margin: 10px auto;
  }
}
